//
//  MusicLibraryController.m
//  Kugou-OC
//
//  Created by BH on 16/5/27.
//  Copyright © 2016年 Sunny. All rights reserved.
//

#import "MusicLibraryController.h"
#import "GlobalDefine.h"
#import <SDAutoLayout/UIView+SDAutoLayout.h>
#import <NinaPagerView/NinaPagerView.h>
#import "NetworkHelper.h"

@interface MusicLibraryController ()

@end

@implementation MusicLibraryController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"乐库";
    self.rightItems = @{@"img1":@"top_search",@"img2":@"top_list"};
    self.navigationController.navigationBar.translucent = NO;
    //菜单
    NSArray *titleArr = @[@"推荐",@"排行",@"歌手",@"歌单",@"分类"];
    //子控制器
    NSArray *vcsArr = @[@"RecommendController",@"RankController",@"MLSingerController",@"SongSheetController",@"CatagoryController"];
    //菜单颜色
    NSArray *colorArr = @[BG_COLOR,[UIColor blackColor],BG_COLOR,[UIColor whiteColor]];
    
    //添加
    NinaPagerView *ninaPagerView = [[NinaPagerView alloc] initWithNinaPagerStyle:NinaPagerStyleBottomLine WithTitles:titleArr WithVCs:vcsArr WithColorArrays:colorArr];
    [self.view addSubview:ninaPagerView];
    
}

@end
